import React from 'react';
import Home from './Home';
import About from './About';
import { BrowserRouter as Router, Redirect, Route } from "react-router-dom";

function router() {
    return (
        <Router>
            <Route path="/home" component={Home} />
            <Route path="/about" component={About} />
            <Route path="/" exact render={() => (<Redirect to="/home" />)} />
        </Router >
    )
}

export default router;